package com.jimmieran.myshop.myshopdatasyncservice.rabbitMQ;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RabbitMQSender {

    @Autowired
    private AmqpTemplate amqpTemplate;

    public void send(String title,String message){
        amqpTemplate.convertAndSend(title,message);
    }
}
